package com.cloudkinto.bo.wave;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author long
 */
@Data
public class WavePickingBo {

    @ApiModelProperty("波次ID")
    @NotNull(message = "波次ID不能为空")
    private Long waveId;

    @NotNull(message = "拣货明细不能为空")
    @ApiModelProperty("拣货明细")
    private List<WavePicking> wavePickingList;

    @Data
    public static class WavePicking {
        private Long productId;
        private String sku;
        @ApiModelProperty("库位信息")
        private List<WavePickingCell> pickingCellList;
    }

    @Data
    public static class WavePickingCell {
        private Long cellId;
        private Integer qty;
    }
}
